import { StrictMode } from 'react'
import React from "react";
import { createRoot } from 'react-dom/client'
import { HashRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import App from './App'
import store from './store';
import "@/assets/style/base.less";
import "@/assets/font/bootstrap-icons.min.css";
const rootElement = document.getElementById("root")
//ts下document.getElementById("root")可能是 null或 HTMLelement,必须进行判断
if(!rootElement){
    throw new Error("Root element not found. Please check your HTML file.");
}
createRoot(rootElement).render(
  <Provider store={store}>
    <HashRouter>
      <App />
    </HashRouter>
  </Provider>
);
